
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%-- <script type="text/javascript">
$(document).ready(function(){
	$("#changePassWord").click(function(){
		alert("hello ");
		var upassword=$("#upassword").val();
		var newpassword=$("#newpassword").val();
		var newpassword2=$("#newpassword2").val();
		if( newpassword==newpassword2){
		 alert("123");
				$.post("<%=basePath%>
	user/changePassWord", {
					upassword : upassword,
					newpassword : newpassword
				}, function(data, textStatus) {
					if (textStatus == "success") {
						alert("success123");
					}
				}, "text");
			}
		});
	});
</script> --%>
<div class="Head row-fluid">
	<div class="Brand span3" background-image="<%=basePath%>images/brand.gif">
		<h1>西华大学 </h1>
	</div>
	<div class="Menu navbar  span9 ">
		<div class="navbar-inner">
			<a class="brand" href="#">titile</a>
			<ul class="nav">
				<li><a href="<%=basePath%>user/index">首页</a></li>
				<li><a href="<%=basePath%>user/topicShow/0">在线考试</a></li>
				<li><a href="<%=basePath%>user/QueryResults">成绩查询</a></li>
				<li><a href="#personal_Information" data-toggle="modal">个人信息查询</a></li>
				<li><a href="#changePassword" data-toggle="modal">修改密码</a></li>
				<li><a href="<%=basePath%>logout" class="Logout">退出系统</a></li>
				<li class="divider-vertical"></li>
				<li class="dropdown"><a href="#" class="dropdown-toggle"
					data-toggle="dropdown"> <i class="icon-user"></i> ${user.uname}<b
						class="caret"></b>
				</a>
			</ul>
		</div>
	</div>
</div>
<!-- Modal -->
<!-- 修改密码 modal -->
<div id="changePassword" class="modal hide fade" tabindex="-1"
	role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">×</button>
		<h3 id="myModalLabel">修改密码</h3>
	</div>
	<div class="modal-body">
		<form class="form-horizontal">
			<div class="control-group">
				<label class="control-label" for="oldPassword" >旧密码</label>
				<div class="controls">
					<input type="text" id="oldPassword" placeholder="旧密码">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="Password">新密码</label>
				<div class="controls">
					<input type="password" id="Password" placeholder="新密码">
				</div>
			</div>
			<div class="control-group">
				<label class="control-label" for="inputPassword">新密码</label>
				<div class="controls">
					<input type="password" id="inputPassword" placeholder="新密码">
				</div>
			</div>
		</form>
	</div>
	<div class="modal-footer">
		<button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
		<button class="btn btn-primary" id="savechange_btn">Save changes</button>
	</div>
</div>
<!--  个人信息查询-->
<div id="personal_Information" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel"  class="center">个人信息</h3>
  </div>
  <div class="modal-body">
	<form class="form-horizontal">
		<div class="control-group">
			<label class="control-label" for="inputPassword">学号：</label>
			<div class="controls">
				<input type="text" id="chnageNumber" placeholder="学号" value=${user.unumber} disabled="true">
			</div>
		</div>
	 	<div class="control-group">
			<label class="control-label" for="inputPassword">姓名：</label>
			<div class="controls">
				<input type="text" id="changeName" placeholder="姓名" value=${user.uname}>
			</div>
		</div>
		 <div class="control-group">
			<label class="control-label" for="inputPassword">性别：</label>
			<div class="controls">
				<input type="text" id="changeGender" placeholder="性别" value=${user.ugender}>
			</div>
		</div>
	 	<div class="control-group">
			<label class="control-label" for="inputPassword">年级：</label>
			<div class="controls">
				<input type="text" id="changeGrade" placeholder="年级" value=${user.ugrade}>
			</div>
		</div>
	</form>
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
    <button class="btn btn-primary" id="changeInfo">Save changes</button>
  </div>
</div>
<script src="<%=basePath%>JS/index.js"></script>